module AutoComplete
  module IncludeHelper
    def auto_complete_include(url)
      output = []
      output << javascript_include_tag(:defaults)
      output << "<script type='text/javascript' src='" + url + "'></script>"
      output << stylesheet_link_tag("prototype.autocomplete.css")
      output * "\n"
    end
  end
end